﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:local="clr-namespace:CeBIT2010" x:Class="CeBIT2010.CebitNextSession"
	xmlns:my="clr-namespace:TheOliver.DigitalSignage.Common;assembly=TheOliver.DigitalSignage.Common"
    d:DesignHeight="309" d:DesignWidth="471">
    <UserControl.Resources>
        <my:ImageConverter
            x:Key="_imageConverter" />
    </UserControl.Resources>
    <Grid
        x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="0.697*" />
            <ColumnDefinition
                Width="0.3*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="81" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel
            Orientation="Horizontal"
            d:LayoutOverrides="Width"
            Grid.ColumnSpan="2">
            <local:NextControl
                Margin="8"
                d:LayoutOverrides="Height"
                Width="80">
                <local:NextControl.Effect>
                    <DropShadowEffect />
                </local:NextControl.Effect>
            </local:NextControl>
            <Grid
                HorizontalAlignment="Left"
                Margin="0"
                VerticalAlignment="Center"
                Width="450">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Image
                    Grid.ColumnSpan="1"
                    HorizontalAlignment="Left"
                    Grid.RowSpan="1"
                    Source="Assets/BIEB_Zettel.png"
                    Stretch="Fill"
                    VerticalAlignment="Center" Visibility="Collapsed">
                    <Image.Effect>
                        <DropShadowEffect />
                    </Image.Effect>
                </Image>
                <TextBlock
                    TextWrapping="Wrap"
                    FontFamily="Lucida Sans Unicode"
                    FontSize="48"
                    Margin="24,0,0,0"
                    d:LayoutOverrides="Height"
                    HorizontalAlignment="Left"><Run Text="Nächster"/><Run Text=" Vortrag"/></TextBlock>
            </Grid>
        </StackPanel>
        <Image
            Margin="8,8,8,57"
            Grid.Row="1"
            Grid.Column="1" 
            Source="{Binding SpeakerImageData, Converter={StaticResource _imageConverter}}" >
        	<Image.Effect>
        		<DropShadowEffect/>
        	</Image.Effect>
        </Image>
        <StackPanel
            Margin="8"
            Grid.Row="1">
            <TextBlock
                x:Name="_sessionTitle"
                FontSize="26.667"
                TextWrapping="Wrap"
                Text="{Binding SessionTitle}"
                FontWeight="Bold" />
            <TextBlock
                x:Name="_sessionAbstract"
                TextWrapping="Wrap"
                Text="{Binding SessionAbstract}"
                FontSize="18.667" />
            <StackPanel
                x:Name="_speakerName"
                Orientation="Horizontal"
                Margin="0,15,0,0">
                <TextBlock
                    x:Name="_speakerFirstname"
                    TextWrapping="Wrap"
                    Text="{Binding SpeakerFirstname}"
                    FontSize="21.333"
                    FontWeight="Bold" />
                <TextBlock
                    x:Name="_speakerLastname"
                    TextWrapping="Wrap"
                    Text="{Binding SpeakerLastname}"
                    Margin="4,0,0,0"
                    FontSize="21.333"
                    FontWeight="Bold" />
            </StackPanel>
            <TextBlock
                x:Name="_speakerTitle"
                TextWrapping="Wrap"
                Text="{Binding SpeakerTitle}"
                FontSize="18.667" />
            <TextBlock
                x:Name="_speakerBio"
                TextWrapping="Wrap"
                Text="{Binding SpeakerBiography}" FontSize="16" TextTrimming="WordEllipsis" />
        </StackPanel>
    </Grid>
	
</UserControl>
